<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <link rel="stylesheet" href="/static/css/register.css">
    <script type="text/javascript" src="${ctx}/webjars/jquery/3.3.1-2/jquery.min.js"></script>
    <script type="text/javascript">
        // JavaScript 代码保持不变
    </script>
</head>
<body>
<div class="header">
    <h2>注册页面</h2>
</div>
<div class="register-container">
    <form action="/registerend" method="get" onsubmit="return subForm()">
        <table>
            <tr>
                <td> <span>用户：</span></td>
                <td><input id="username" type="text" name="username" placeholder="请输入1-5个汉字或字母" onblur="f1()"><span id="d1"></span></td>
            </tr>
            <tr>
                <td>
                    <span>密码：</span>
                </td>
                <td><input id="password" type="password" name="password" placeholder="请输入1-12个字母或数字" onblur="f2()"><span id="d2"></span></td>
            </tr>
            <tr>
                <td colspan="2"><input id="s1" type="submit" value="注册"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>